package com.swsc.solarverse.dao.mapper.forward;

import com.swsc.solarverse.dao.entity.forward.ForwardScadaDeviceInfoDO;

/**
 * <p>
 * 遥测设备点表 Mapper 接口
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-06-13
 */
@org.apache.ibatis.annotations.Mapper
public interface ForwardScadaDeviceInfoMapper extends com.baomidou.mybatisplus.core.mapper.BaseMapper<ForwardScadaDeviceInfoDO> {
    @org.apache.ibatis.annotations.Insert(value = {
            "<script>",
            "INSERT IGNORE INTO solar_forward_scada_device_info (`id`,`tenant_no`,`organ_no`, `device_pid`, `device_id`, `device_code`, `device_type`,`data_type`,`data_name`,`data_no`,`remark`, `create_time`, `update_time`) VALUES ",
            "<foreach collection='list' item='item' index='index' separator=','>",
            "(#{item.id}, #{item.tenantNo}, #{item.organNo}, #{item.devicePid}, #{item.deviceId}, #{item.deviceCode}, #{item.deviceType, #{item.dataType}, #{item.dataName}, #{item.dataNo}, #{item.remark}, #{item.createTime}, #{item.updateTime})",
            "</foreach>",
            "</script>"
    })
    int insertIgnoreBatch(java.util.List<ForwardScadaDeviceInfoDO> list);
}
